// 封装公共接口
import axios from "@/utils/request"

// 文件上传接口
export function upload(data){
    return axios({
        url: "/upload",
        method: "post",
        data
    })
}

// 栏目列表
export function category(){
    return axios({
        url: "/category",
        method: "get"
    })
}